package com.example.mapper;

import com.example.entity.Group;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface GroupMapper {
    List<Group> getAllGroups();
    Group getGroupById(Integer groupId);
    int insertGroup(Group group);
    int countByLeader(String leader);
    int updateGroupMembers(@Param("groupId") Integer groupId, @Param("members") String members);
    int deleteGroup(Integer groupId);
}